<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
  <SCRIPT type="text/javascript">
  <!--
  function login(){
	  if(document.myform.userId.value.length==0){
		alert("아이디를 입력 하여 주세요");
		return;
	  }
	  if(document.myform.userPw.value.length==0){
        alert("비밀를 입력 하여 주세요");
        return;
	  }
	  document.myform.submit();
  }
    
  //-->
  </SCRIPT>
</head>
<body>
<form id="myform" name="myform" method="post" action="loginok.jsp">
<table width="200" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td>로그인</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
      <label for="userId"></label>
      <input type="text" name="userId" id="iuserId" style="ime-mode:inactive;" />
    </td>
    <td><input type="button" name="button" id="button" value="로그인" onclick="login()" /></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><label for="userPw"></label>
    <input type="text" name="userPw" id="iuserPw" style="ime-mode:inactive;" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>